Wiki Diff updating oE any_key, revision #1 to tip


@[:console:any_key|]
==== any_key
<eucode>
include console.e
namespace console
public procedure any_key(sequence prompt = "Press Any Key to continue...", integer con = 1)
</eucode>

displays a prompt to the user and waits for any key.

===== Parameters:
# ##prompt## : Prompt to display, defaults to ##"Press Any Key to continue..."## .
# ##con## : Either ##1## (stdout), or ##2## (stderr). Defaults to ##1## .

===== Comments:
This wraps [[:wait_key]] by giving a clue that the user should press a key, and
perhaps do some other things as well.

===== Example 1:
<eucode>
include std/console.e
any_key() -- "Press Any Key to continue..."
</eucode>

===== Example 2:
<eucode>
include std/console.e
any_key("Press Any Key to quit")
</eucode>

===== See Also:
[[:wait_key]]


Search



Quick Links

User menu

Not signed in.

Misc Menu